<?php
/**
 *@ tao boi: namnguyen
 *@ ngay: May 13, 2012 | gio: 10:30:29 AM
 *@ ung dung: Joomzf Cms 1.0
 */
define('DS','/');


define('BASE_PATH',  realpath(dirname(__FILE__)));


define('APPLICATION_KEY','ss_' . md5(BASE_PATH));
define('APPLICATION_LANGUAGE_DEFAULT','en');
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH',
		realpath(dirname(__FILE__) . DS.'application'));

// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV',
		(getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
				: 'developer'));
//set include path
set_include_path(implode(PATH_SEPARATOR, array(
		dirname(__FILE__) . DS.'library',
		get_include_path(),
)));


require_once('Zend/Application.php');

$environment = APPLICATION_ENV;
$options = APPLICATION_PATH . '/configs/application.ini';
$application = new Zend_Application($environment, $options);
require_once 'defined.php';
$application->bootstrap()->run();